package com.jxwifi.cloud.quickcleanserver.app;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import java.util.Map;
import com.alibaba.sdk.android.push.AndroidPopupActivity;
import com.jxwifi.cloud.quickcleanserver.MainActivity;
import com.jxwifi.cloud.quickcleanserver.welcome.WelcomeActivity;

public class PopupPushActivity extends AndroidPopupActivity {

    static final String TAG = "PopupPushActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    /**
     * 实现通知打开回调方法，获取通知相关信息
     * @param title     标题
     * @param summary   内容
     * @param extMap    额外参数
     */
    @Override
    protected void onSysNoticeOpened(String title, String summary, Map<String, String> extMap) {
        Log.w(TAG,"OnMiPushSysNoticeOpened, title: " + title + ", content: " + summary + ", extMap: " + extMap);

        Intent intent = new Intent();
        intent.setClass(this,WelcomeActivity.class);
        startActivity(intent);
        this.finish();
    }
}
